﻿@model IDictionary<string, object>
@if (ViewData["show"].ToString() == "1")
{
    var imgpath = Enter.Config.ImgPathConfig.productHotServerPath;
    <div class="fsdg-box fsdg-hot">
        <div class="fsdg-hd">
            <a href="#;" target="_blank" class="fsdgHd-more ui-more-nbg">更多<i class="ui-more-nbg-arrow"></i></a>
            <h2 class="fsdgHd-title">
                热门排行</h2>
        </div>
        <div class="fsdg-bd clearfix">
            <div class="fsdgH-list">
                <h3 class="fsdgH-title">
                    好评精选<b class="fsdgH-start"></b></h3>
                <ul class="fsdgH-item">
                    @foreach (var item in (List<Enter.Mvc.Mall.Model.Product.ProductModel>)Model["T1"])
                    { 
                        <li><a target="_blank" href="/Detail/item?id=@item.GID">
                            <img width="120" height="120" src="@imgpath@item.ImgUrl"></a>
                            <div class="fsdgH-des">
                                <p>
                                    评分：<span class="high-red">@item.CommentScore</span></p>
                                <p>
                                    共有<b class="proHigh">@item.CommentCount</b>人打分</p>
                            </div>
                        </li>
                    }
                </ul>
            </div>
            <div class="fsdgH-list">
                <h3 class="fsdgH-title">
                    最热单品</h3>
                <ul class="fsdgH-item">
                    @foreach (var item in (List<Enter.Mvc.Mall.Model.Product.ProductModel>)Model["T2"])
                    { 
                        <li><a target="_blank" href="/detail/item?id=@item.GID&scm=@item.ShopNO">
                            <img width="120" height="120" src="@imgpath@item.ImgUrl"></a>
                            <div class="fsdgH-des">
                                <p>
                                    共售出<span class="high-red">@item.SaleCount</span>件</p>
                                <p>
                                    本周售出<b class="proHigh">@item.WeekSaleCount</b>笔</p>
                            </div>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>
}